 
function listBulletsPointsProduct(id_product)
{
    var url = 'http://'+location.hostname+'/backend_dev.php/';
    $(function(){
        $.ajax({
          type: "POST",
          url: url + "product/listBulletPoint?id=" + id_product,
          dataType: "script",
          beforeSend: function(objeto){
                $("#bulletsPoint").html("Cargando ...");
          },
          success: function(msg){
                $("#bulletsPoint").html(msg);                
          }

        });
    });
}

function uploadPhotoProduct(moduleAction)
{
    var url = 'http://'+location.hostname+'/backend.php/';
    var urlUpload = url + moduleAction;
    var btnUpload=$('#upload_image');
    var status=$('#mimeError');
    new AjaxUpload(btnUpload, {
        action: urlUpload,
        name: 'uploadfile',
        dataType: 'html',
        onSubmit: function(file,ext){
            //if there is an error
            if (! (ext && /^(jpg|png|jpeg|gif)$/.test(ext))){
                status.show();
                status.animate({opacity: 5000}, 0)
                status.animate({opacity: 0}, 7000);
                return false;
            }
            $('#preLoad').show();
            btnUpload.css("display","none");
            $('#msg_upload').css("display","none");
            $('#wait').css("display","");
            $('#wait').html("&nbsp;&nbsp;Wait until the upload image...");
        },
        onComplete: function(file, response){
            $('#preLoad').hide();
            //Add uploaded file to list
            $('#image_poster').append(response);
            $('#preLoad').remove().appendTo("#image_poster");
            $('#no_foto').fadeOut('');
            btnUpload.css("display","");
            $('#wait').css("display","none");
            $('#msg_upload').css("display","");
        }
    });
}